<p>
	<img width="480" src="<?php echo $data->image->getURL(); ?>" />
</p>

<form action="?controller=Photo&action=edit&imgId=<?php echo $data->image->getId(); ?>&categorie=<?php echo $data->current_categorie; ?>" method="post">
	<div class="input-row">
		<div class="colForm">
			<label for="category">Catégorie : </label>
		</div>
		<div class="colForm">
			<select id="category" name="category">
			<?php foreach ($data->categories as $c): ?>
				<option value="<?php echo $c->categorie; ?>" <?php echo ($c->categorie == $data->image->getCategory() ? 'selected':null); ?>>
					<?php echo $c->categorie; ?>
				</option>
			<?php endforeach; ?>
			</select>
		</div>
	</div>
	<div class="input-row">
		<div class="colForm">
			<label for="comment">Commentaire : </label>
		</div>
		<div class="colForm">
			<input type="text" name="comment" id="comment" value="<?php echo $data->image->getComment(); ?>" />
		</div>
	</div>
	<div class="input-row">
		<input type="submit" value="Enregistrer" />
	</div>
</form>